﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace SistemaAdministracion.Models.ViewModels.Account
{
    //clases que nos sirven para trabajar con la interfaz directamente
    public class LoginUserModel
    {
        [Display(Name="Rut Empresa: ",Prompt="ejemplo: 1233423453")]
        [Required(ErrorMessage="Ingrese Rut Empresa")]
        [RegularExpression("[0-9]{8}",ErrorMessage="Deben ingresar largo correcto")]
        [StringLength(8,MinimumLength=8,ErrorMessage="Rut Invalido")]
        public int RutEmpresa { get; set; }
        [Display(Name = "Usuario:")]
        [Required(ErrorMessage = "Ingrese Nombre de Usuario")]
        public string UserName { get; set; }
        [Display(Name = "Password:")]
        [Required(ErrorMessage = "Ingrese Contraseña")]
        public string Password { get; set; }
    }
}